<?php

class BeritaFrontWidget extends CWidget {

  
  public function run() {
        
        $dt=yii::app()->db->createCommand()
                ->select('*')
                ->from('post')
                ->limit('5')
                ->queryAll();            
       
        $this->render('berita_front_views', array(
            'dt'=>$dt,   
        ));
    }
}